const { address } = require('./as.js')
const http = require('http')
const { setaddress } = require('./setaddress.js')

const server = http.createServer((request,response) => {

    response.setHeader('Access-Control-Allow-Origin','*')

    response.setHeader('Content-Type', 'application/json;charset=utf-8');

    response.end(JSON.stringify(setaddress(address)))

})

server.listen('6677')